package cn.cdzdjd.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.cdzdjd.service.NoticeService;
import cn.cdzdjd.util.Result;

@RestController
@RequestMapping("/api/notice")
public class NoticeController {
	@Resource
	private NoticeService noticeService;

	@GetMapping("/get")
	public Result<?> getNotices() {
		return new Result<>().ok(noticeService.queryNotice());
	}
}
